package Cursus.Listeners;

import java.awt.*;
import javax.swing.*;

// Main bij myTextField.java

public class SwingKeyListener extends JFrame {
    Container c;
    public SwingKeyListener() {
        setBounds(10, 10, 250, 180);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        c = getContentPane();
        c.setLayout(new FlowLayout());
        c.add(new myTextField()); c.add(new myTextField());
        c.add(new myTextField()); c.add(new myTextField());
        setVisible(true);
    }

    public static void main(String args[]) {
        new SwingKeyListener();
    }
}
